﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using tracker.Models.DTO;
namespace tracker.Models
{
    // Day la data access layer fai ko ?yes
    // ket thua cai erpcataloguebase
    // chu lam di
    public class UserDAL : ErpCatalogueBaseBL
    {
        #region Properties Define
        private string FIELD_USERNAME = "Username";
        #endregion

        #region STORE NAME
        public const string USERLOGIN_SELECTBYUSERNAME = "UserLogin_SelectByUsername";
        #endregion

        public DataSet getByUserName(string userName)
        {
            DataSet ds = ErpCatalogueBaseBL.SelectAllWithParameter(USERLOGIN_SELECTBYUSERNAME,
                                                                   new string[] { FIELD_USERNAME },
                                                                   new object[] { userName });
            return ds; 
        }
    }
}
